﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using TracNghiemTinHocDaiCuong.DAO;
using TracNghiemTinHocDaiCuong.ThucThe;

namespace TracNghiemTinHocDaiCuong.BIZ
{
    public class BaiLamBIZ
    {
        public static DataTable KetQuaNguoiDung(int maND)
        {
            return BaiLamDAO.KetQuaNguoiDung(maND);
        }

        public static string LayBaiLam(int idMaBL, int idNguoiDung, int idDe)
        {
            return BaiLamDAO.LayBaiLam(idMaBL, idNguoiDung, idDe);
        }

        public static IList<BaiLam> LayDanhSach()
        {
            return BaiLamDAO.LayDanhSach();
        }

        public static int Them(BaiLam BaiLam)
        {
            return BaiLamDAO.Them(BaiLam);
        }

        public static bool Sua(BaiLam BaiLam)
        {
            return BaiLamDAO.Sua(BaiLam);
        }

        public static bool Xoa(int idBaiLam)
        {
            return BaiLamDAO.Xoa(idBaiLam);
        }
    }
}